package com.wlyy.his.infrastructure.config;

import com.wlyy.his.infrastructure.common.RequestUserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.web.context.WebApplicationContext;

/**
 * @author: 10097
 * @Date: 2021/8/26 13:28
 * @Description:
 */
@Configuration
public class BaseConfig {

    @Scope(scopeName = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
    @Bean
    public RequestUserInfo requestUserInfo() {
        return new RequestUserInfo();
    }
}
